package com.example.finalsystem.Dao;

import com.example.finalsystem.Entity.Goods;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GoodsMapper {
    @Select("  select * from uml_goods  limit #{currentPage} ,#{pageSize}")
    List<Goods> getListOfGoods(int currentPage, int pageSize);
    @Select("  select count(*) from uml_goods ")
    int countGoods();

    int deleteByPrimaryKey(String goodsname);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(String goodsname);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);
}